//
//  XMGTitleView.m
//  小码哥彩票
//
//  Created by 徐悟源 on 16/3/8.
//  Copyright (c) 2016年 xiaomage. All rights reserved.
//

#import "XMGTitleView.h"

@implementation XMGTitleView

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    if (self.imageView.x < self.titleLabel.x)
    {
        self.titleLabel.x = self.imageView.x;
        self.imageView.x = CGRectGetMaxX(self.titleLabel.frame);
    }
    
    NSLog(@"old -- %f(label) -- %f",self.titleLabel.x,self.imageView.x);
    NSLog(@"new -- %f(label) -- %f",self.titleLabel.x,self.imageView.x);
}

@end
